import request from '@/utils/request'

// 查询邮件信息表列表
export function listEmail(query) {
  return request({
    url: '/eamp/email/allList',
    method: 'get',
    params: query
  })
}
// 查询邮件信息表列表
export function listUserEmail() {
  return request({
    url: '/eamp/email/allUserEmailList',
    method: 'get',
  })
}

// 查询邮件信息表详细
export function getEmail(emailId) {
  return request({
    url: '/eamp/email/' + emailId,
    method: 'get'
  })
}

// 新增邮件信息表
export function addEmail(data) {
  return request({
    url: '/eamp/email/add',
    method: 'post',
    data: data
  })
}

// 修改邮件信息表
export function updateEmail(data) {
  return request({
    url: '/eamp/email',
    method: 'put',
    data: data
  })
}

// 删除邮件信息表
export function delEmail(emailId) {
  return request({
    url: '/eamp/email/' + emailId,
    method: 'delete'
  })
}
export function selectOne(data) {
  return request({
    url: '/eamp/email/selectOne',
    method: 'get',
    params: data
  })
}
export function getListBing(query) {
  return request({
    url: '/eamp/email/getListBing',
    method: 'get',
    params: query
  })
}
export function echartList() {
  return request({
    url: '/eamp/re_man/echartList',
    method: 'get',
  })
}
export function selectSrName() {
  return request({
    url: '/eamp/re_man/selectSrName',
    method: 'get',
  })
}

export function getMax() {
  return request({
    url: '/eamp/re_man/getMax',
    method: 'get',
  })
}
